package com.ssy.lingxi.transaction.api.fallback;

import com.ssy.lingxi.common.exception.BusinessException;
import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.transaction.api.dto.request.InquiryProductPriceRequest;
import com.ssy.lingxi.transaction.api.dto.response.InquiryListProductResponse;
import com.ssy.lingxi.transaction.api.dto.response.InquiryProductPriceResponse;
import com.ssy.lingxi.transaction.api.feign.ITradeFeign;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class TradeHystrix implements ITradeFeign {
    @Override
    public Wrapper<List<InquiryListProductResponse>> getInquiryProduct(String quotationNo) {
        throw new BusinessException(ResponseCode.SERVICE_TRADE_ERROR);
    }

    @Override
    public Wrapper<List<InquiryProductPriceResponse>> getInquiryProductPrice(InquiryProductPriceRequest inquiryProductPriceRequest) {
        throw new BusinessException(ResponseCode.SERVICE_TRADE_ERROR);
    }
}
